package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.JtyxSsmRecordService;
import com.jeesite.modules.dataScreen.web.dto.SsmRecordSendDto;
import com.jeesite.modules.dataScreen.web.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@Api(tags = "交通运行-短信功能")
@RequestMapping("/ssmRecord")
public class SsmRecordApi {

    @Resource
    private JtyxSsmRecordService jtyxSsmRecordService;

    @PostMapping("/send")
    @ApiOperation("发送短信")
    public Result<String> send(@RequestBody @Validated SsmRecordSendDto dto) {
        jtyxSsmRecordService.sendSsm(dto);
        return Result.OK();
    }
}
